import React, { Component, PropTypes } from 'react'
import ApproveHistory from "components/template/approve-history";

class SlideExpenseReportDetailHistory extends Component {

  static contextTypes = {
    info: PropTypes.object,
    applicant: PropTypes.object,
    approvalHistory: PropTypes.array,
    approvalChains: PropTypes.array
  };

  render() {
    const { info, approvalChains, approvalHistory, applicant } = this.context;
    return (
      <div className='slide-expense-report-detail-history'>
        <ApproveHistory
          businessCode={info.businessCode}
          approvalChains={approvalChains}
          approvalHistory={approvalHistory}
          applicantInfo={applicant}
        />
      </div>
    )
  }

}

export default SlideExpenseReportDetailHistory;
